<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>[Generic Component Framework v3] GCF::ObjectMap&lt; T &gt; Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<!--link href="tabs.css" rel="stylesheet" type="text/css"-->
</head><body>
 <div id="wrapper">
    <div id="logo_box">
        <a class="img_link" href="https://github.com/pnudupa/gcf" target="_blank" ><img style="float:left;margin-left:10px;margin-top:5px;margin-bottom:5px;"src="header_gcf_logo.jpg" alt="GCF LOGO"/></a>
        <a class="img_link" href="https://www.vcreatelogic.com/" target="_blank" ><img style="float:right;margin-right:10px; margin-top: 30px;" src="header_vcl_logo.jpg" alt="VCL LOGO"/></a>
        <div style="clear:both"></div>
    </div>
    <div class="nav">
        <ul>
            <li class="selectedpage">
                <a class="a-home" href="index.html" >
                    <span>Home</span>
                </a>
            </li>
            <li>
                <a class="a-classes " href="classes.html">
                    <span>All Classes</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_modules.html">
                    <span>Modules</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_guides_and_videos.html">
                    <span>Guides & Videos</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_tools_and_inbuilt_components.html">
                    <span>Tools & Components</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main-content">
        <div class="inside">
        <div>
<!-- Generated by Doxygen 1.8.16 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>GCF</b></li><li class="navelem"><a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_g_c_f_1_1_object_map-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GCF::ObjectMap&lt; T &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__gcf__core.html">GCF Core Module</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This class manages a map of QObject-value pairs.  
 <a href="class_g_c_f_1_1_object_map.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0f17a6301d81b8655e90de5d5bbee8af"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a0f17a6301d81b8655e90de5d5bbee8af">ObjectMap</a> ()</td></tr>
<tr class="separator:a0f17a6301d81b8655e90de5d5bbee8af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d10d1feb42c164498567a33057521d7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a5d10d1feb42c164498567a33057521d7">ObjectMap</a> (const <a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> &amp;other)</td></tr>
<tr class="separator:a5d10d1feb42c164498567a33057521d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cd033c781cc4f74d372a18715fb7b19"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a6cd033c781cc4f74d372a18715fb7b19">ObjectMap</a> (const QMap&lt; QObject *, T &gt; &amp;<a class="el" href="class_g_c_f_1_1_object_map.html#a2618171e34b911c61933d8bc80c8f706">map</a>)</td></tr>
<tr class="separator:a6cd033c781cc4f74d372a18715fb7b19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84d54760145fc41e0ae9b4c661d4651a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a84d54760145fc41e0ae9b4c661d4651a">~ObjectMap</a> ()</td></tr>
<tr class="separator:a84d54760145fc41e0ae9b4c661d4651a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5233994da977766cbee949ab0cdd8c14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a5233994da977766cbee949ab0cdd8c14">setEventListener</a> (<a class="el" href="class_g_c_f_1_1_object_map_event_listener.html">ObjectMapEventListener</a> *listener)</td></tr>
<tr class="separator:a5233994da977766cbee949ab0cdd8c14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf264f837a1db502c432734565a19e5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html">ObjectMapEventListener</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#abf264f837a1db502c432734565a19e5b">eventListener</a> () const</td></tr>
<tr class="separator:abf264f837a1db502c432734565a19e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a714952462aa37199938487f2a191e934"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a714952462aa37199938487f2a191e934">operator=</a> (const <a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> &amp;other)</td></tr>
<tr class="separator:a714952462aa37199938487f2a191e934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa695b68e431643f41703c4c0035510f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#aa695b68e431643f41703c4c0035510f0">insert</a> (QObject *object, const T &amp;<a class="el" href="class_g_c_f_1_1_object_map.html#acd43867513930991908db23aef577b9d">value</a>)</td></tr>
<tr class="separator:aa695b68e431643f41703c4c0035510f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac296bd40dd0e8e6d8d2ceff12c582464"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#ac296bd40dd0e8e6d8d2ceff12c582464">remove</a> (QObject *object)</td></tr>
<tr class="separator:ac296bd40dd0e8e6d8d2ceff12c582464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75a7fb5d630ba81569dce3ba7203f576"><td class="memItemLeft" align="right" valign="top">T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a75a7fb5d630ba81569dce3ba7203f576">operator[]</a> (QObject *object)</td></tr>
<tr class="separator:a75a7fb5d630ba81569dce3ba7203f576"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf26bcf0ac59bb3d068e1f9a2b377b62"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#aaf26bcf0ac59bb3d068e1f9a2b377b62">operator[]</a> (QObject *object) const</td></tr>
<tr class="separator:aaf26bcf0ac59bb3d068e1f9a2b377b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaacb1008e0cce7916833bec79ca3906"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#acaacb1008e0cce7916833bec79ca3906">count</a> () const</td></tr>
<tr class="separator:acaacb1008e0cce7916833bec79ca3906"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9d1343ea6cbf03398c5b3333ce36831"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#ac9d1343ea6cbf03398c5b3333ce36831">isEmpty</a> () const</td></tr>
<tr class="separator:ac9d1343ea6cbf03398c5b3333ce36831"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8a14c0b06ee74ff9f71001f1880accb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#ac8a14c0b06ee74ff9f71001f1880accb">contains</a> (QObject *object) const</td></tr>
<tr class="separator:ac8a14c0b06ee74ff9f71001f1880accb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd43867513930991908db23aef577b9d"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#acd43867513930991908db23aef577b9d">value</a> (QObject *object, const T &amp;defVal=T()) const</td></tr>
<tr class="separator:acd43867513930991908db23aef577b9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b40b48a8bf3176d48d7d2509110fe76"><td class="memItemLeft" align="right" valign="top">QObjectList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a2b40b48a8bf3176d48d7d2509110fe76">keys</a> () const</td></tr>
<tr class="separator:a2b40b48a8bf3176d48d7d2509110fe76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a617ff296659fba86fb8a711abedb819e"><td class="memItemLeft" align="right" valign="top">QList&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a617ff296659fba86fb8a711abedb819e">values</a> () const</td></tr>
<tr class="separator:a617ff296659fba86fb8a711abedb819e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87e54a5e305211313d51506909f78797"><td class="memItemLeft" align="right" valign="top">QMap&lt; QObject *, T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a87e54a5e305211313d51506909f78797">toMap</a> () const</td></tr>
<tr class="separator:a87e54a5e305211313d51506909f78797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2618171e34b911c61933d8bc80c8f706"><td class="memItemLeft" align="right" valign="top">const QMap&lt; QObject *, T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a2618171e34b911c61933d8bc80c8f706">map</a> () const</td></tr>
<tr class="separator:a2618171e34b911c61933d8bc80c8f706"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ee139fe3c8ad1736c8e12b5d4eba088"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a1ee139fe3c8ad1736c8e12b5d4eba088">removeAll</a> ()</td></tr>
<tr class="separator:a1ee139fe3c8ad1736c8e12b5d4eba088"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a675e2c0442fddb7429483faf30e3ed79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map.html#a675e2c0442fddb7429483faf30e3ed79">deleteAll</a> ()</td></tr>
<tr class="separator:a675e2c0442fddb7429483faf30e3ed79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_g_c_f_1_1_object_list_event_listener"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_g_c_f_1_1_object_list_event_listener')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_g_c_f_1_1_object_list_event_listener.html">GCF::ObjectListEventListener</a></td></tr>
<tr class="memitem:a8ff90650697e04bcd773eca37f1b620d inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_list_event_listener.html#a8ff90650697e04bcd773eca37f1b620d">ObjectListEventListener</a> ()</td></tr>
<tr class="separator:a8ff90650697e04bcd773eca37f1b620d inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8080a35f89335f9fef396c1af95849e inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_list_event_listener.html#ad8080a35f89335f9fef396c1af95849e">~ObjectListEventListener</a> ()</td></tr>
<tr class="separator:ad8080a35f89335f9fef396c1af95849e inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class GCF::ObjectMap&lt; T &gt;</h3>

<p> 
<pre>
#include &lt;GCF3/ObjectMap&gt;
</pre>
</p>
<p>This class can be used as a replacement for <code>QMap&lt;QObject*, T&gt;</code>, when you want only valid pointers to <code>QObject</code> to be stored in the map. This class automatically notifies and removes invalid <code>QObject</code> - Value pairs, as and when the objects are deleted inside the application.</p>
<p>Three types of events can happen on <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a> </p><ul>
<li>A <code>QObject</code> pointer - Value pair got added to the map. </li>
<li>A <code>QObject</code> pointer - Value got removed from the map. </li>
<li>A <code>QObject</code> pointer in the map, got deleted</li>
</ul>
<p>You can listen to this by setting an <a class="el" href="class_g_c_f_1_1_object_map_event_listener.html">GCF::ObjectMapEventListener</a> using <a class="el" href="class_g_c_f_1_1_object_map.html#a5233994da977766cbee949ab0cdd8c14">setEventListener(ObjectMapEventListener *listener)</a> method. When a new QObject pointer - Value pair is inserted to/removed from the <code><a class="el" href="class_g_c_f_1_1_object_map.html" title="This class manages a map of QObject-value pairs.">ObjectMap</a></code>, <code><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html" title="This listens to GCF::ObjectMap &#39;s events.">ObjectMapEventListener</a></code> will notify it.</p>
<p>If you want to have several listeners receive event notifications on an object map, then you can install a <a class="el" href="class_g_c_f_1_1_object_map_event_broadcaster.html">GCF::ObjectMapEventBroadcaster</a> on the object map and register all event listeners with the broadcaster. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0f17a6301d81b8655e90de5d5bbee8af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f17a6301d81b8655e90de5d5bbee8af">&#9670;&nbsp;</a></span>ObjectMap() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::<a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor. </p>

</div>
</div>
<a id="a5d10d1feb42c164498567a33057521d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d10d1feb42c164498567a33057521d7">&#9670;&nbsp;</a></span>ObjectMap() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::<a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor. <a class="el" href="class_g_c_f_1_1_object_map.html" title="This class manages a map of QObject-value pairs.">ObjectMap</a> does not copy the <a class="el" href="class_g_c_f_1_1_object_map_event_listener.html" title="This listens to GCF::ObjectMap &#39;s events.">GCF::ObjectMapEventListener</a> that is currently set on the other <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> from which objects-value pairs will be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6cd033c781cc4f74d372a18715fb7b19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cd033c781cc4f74d372a18715fb7b19">&#9670;&nbsp;</a></span>ObjectMap() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::<a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> </td>
          <td>(</td>
          <td class="paramtype">const QMap&lt; QObject *, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>map</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copies the QObject-value pairs from QMap&lt;QObject*,T&gt; map to this. </p>

</div>
</div>
<a id="a84d54760145fc41e0ae9b4c661d4651a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84d54760145fc41e0ae9b4c661d4651a">&#9670;&nbsp;</a></span>~ObjectMap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::~<a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5233994da977766cbee949ab0cdd8c14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5233994da977766cbee949ab0cdd8c14">&#9670;&nbsp;</a></span>setEventListener()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::setEventListener </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html">ObjectMapEventListener</a> *&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets event listener on this. If there was a already an event listener set then it will be replaced with the new one.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">listener</td><td>the <a class="el" href="class_g_c_f_1_1_object_map_event_listener.html">GCF::ObjectMapEventListener</a> which needs to be set as event listener. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abf264f837a1db502c432734565a19e5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf264f837a1db502c432734565a19e5b">&#9670;&nbsp;</a></span>eventListener()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::eventListener </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>currently set event listener on this. </dd></dl>

</div>
</div>
<a id="a714952462aa37199938487f2a191e934"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a714952462aa37199938487f2a191e934">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Overloaded equal to operator. It copies everything from <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a> except the <a class="el" href="class_g_c_f_1_1_object_map_event_listener.html" title="This listens to GCF::ObjectMap &#39;s events.">GCF::ObjectMapEventListener</a> that is currently set on <code>other</code> <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> from which objects-value pairs will be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa695b68e431643f41703c4c0035510f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa695b68e431643f41703c4c0035510f0">&#9670;&nbsp;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::insert </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inserts the <code>QObject</code> pointer - Value pair into the map.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td><code>QObject</code> pointer which needs to be inserted into the map. </td></tr>
    <tr><td class="paramname">value</td><td>template class value which needs to be inserted into the map against object pointer 'object'. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac296bd40dd0e8e6d8d2ceff12c582464"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac296bd40dd0e8e6d8d2ceff12c582464">&#9670;&nbsp;</a></span>remove()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::remove </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes the <code>QObject</code> pointer - Value pair from the map.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td><code>QObject</code> pointer which needs to be removed from the map. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a75a7fb5d630ba81569dce3ba7203f576"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75a7fb5d630ba81569dce3ba7203f576">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns reference to the value for <code>QObject</code> pointer existing in the map. You have to make sure that the object exists in the map before calling this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td><code>QObject</code> pointer for which reference to value needs to be returned from the map. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>reference to the value. </dd></dl>

</div>
</div>
<a id="aaf26bcf0ac59bb3d068e1f9a2b377b62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf26bcf0ac59bb3d068e1f9a2b377b62">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a constant reference to the value for <code>QObject</code> pointer existing in the map. You have to make sure that the object exists in the map before calling this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td><code>QObject</code> pointer for which const reference value needs to be returned from the map. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>const reference to the value. </dd></dl>

</div>
</div>
<a id="acaacb1008e0cce7916833bec79ca3906"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaacb1008e0cce7916833bec79ca3906">&#9670;&nbsp;</a></span>count()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the map object count. </dd></dl>

</div>
</div>
<a id="ac9d1343ea6cbf03398c5b3333ce36831"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9d1343ea6cbf03398c5b3333ce36831">&#9670;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true whether the map is empty otherwise false. </dd></dl>

</div>
</div>
<a id="ac8a14c0b06ee74ff9f71001f1880accb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8a14c0b06ee74ff9f71001f1880accb">&#9670;&nbsp;</a></span>contains()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::contains </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if the map contains the object otherwise false. </dd></dl>

</div>
</div>
<a id="acd43867513930991908db23aef577b9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd43867513930991908db23aef577b9d">&#9670;&nbsp;</a></span>value()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::value </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>defVal</em> = <code>T()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a copy of the value stored against the <code>QObject</code> pointer <code>object</code> in the map otherwise returns the default value <code>defVal</code>.</p>
<dl class="section return"><dt>Returns</dt><dd>value corresponding to <code>object</code> in map if it exists otherwise returns default value. </dd></dl>

</div>
</div>
<a id="a2b40b48a8bf3176d48d7d2509110fe76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b40b48a8bf3176d48d7d2509110fe76">&#9670;&nbsp;</a></span>keys()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::keys </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns keys of map. Since <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a> stores <code>QObject</code> pointer versus value, <a class="el" href="class_g_c_f_1_1_object_map.html#a2b40b48a8bf3176d48d7d2509110fe76">keys()</a> will return <code>QObjectList</code>.</p>
<dl class="section return"><dt>Returns</dt><dd><code>QObjectList</code> of all the object pointers stored as keys. </dd></dl>

</div>
</div>
<a id="a617ff296659fba86fb8a711abedb819e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a617ff296659fba86fb8a711abedb819e">&#9670;&nbsp;</a></span>values()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::values </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns values of map. Since <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a> stores <code>QObject</code> pointer versus Template class value, <a class="el" href="class_g_c_f_1_1_object_map.html#acd43867513930991908db23aef577b9d">value()</a> will return <code>QList&lt;T&gt;</code>.</p>
<dl class="section return"><dt>Returns</dt><dd><code>QList&lt;T&gt;</code> of values stored as key-value pair. </dd></dl>

</div>
</div>
<a id="a87e54a5e305211313d51506909f78797"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87e54a5e305211313d51506909f78797">&#9670;&nbsp;</a></span>toMap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::toMap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>stored <code>QObject</code> pointer - Value pairs as QMap&lt;QObject*,T&gt;. </dd></dl>

</div>
</div>
<a id="a2618171e34b911c61933d8bc80c8f706"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2618171e34b911c61933d8bc80c8f706">&#9670;&nbsp;</a></span>map()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::map </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>constant reference to <code>QObject</code> pointer - Value map. </dd></dl>

</div>
</div>
<a id="a1ee139fe3c8ad1736c8e12b5d4eba088"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ee139fe3c8ad1736c8e12b5d4eba088">&#9670;&nbsp;</a></span>removeAll()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::removeAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes all <code>QObject</code> pointer - Value stored in this map. </p>

</div>
</div>
<a id="a675e2c0442fddb7429483faf30e3ed79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a675e2c0442fddb7429483faf30e3ed79">&#9670;&nbsp;</a></span>deleteAll()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>&lt; T &gt;::deleteAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Deletes all <code>QObject</code> pointer stored in this map and removes the value stored in this map. </p>

</div>
</div>
</div><!-- contents -->
</div>
</div>
</div>
<div class="footer_content">
<table width="100%" class="footer">
<tr>
<td align="left" width="50%">Copyright &copy; 2013-2019,
 <a class="el" href="http://www.vcreatelogic.com" target="_black">VCreate Logic Private Limited</a></td>
<td align="right" width="50%"><a class="el" href="http://www.vcreatelogic.com/products/gcf" target="_black">GCF - Generic Component Framework</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
